package cn.exrick.xboot.modules.content.serviceimpl.mybatis;

import cn.exrick.xboot.modules.content.dao.mapper.HontUserRoleMapper;
import cn.exrick.xboot.modules.content.entity.HontRole;
import cn.exrick.xboot.modules.content.entity.HontUserRole;
import cn.exrick.xboot.modules.content.service.mybatis.IHontUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;
@Service
public class IHontUserRoleServiceImp extends ServiceImpl<HontUserRoleMapper, HontUserRole> implements IHontUserRoleService {

    @Autowired
    private HontUserRoleMapper hontUserRoleMapper;

    @Override
    public List<HontRole> findByUserId(String userId) {

        return hontUserRoleMapper.findByHontUserId(userId);
    }

    @Override
    public List<String> findDepIdsByUserId(String userId) {

        return hontUserRoleMapper.findDepIdsByHontUserId(userId);
    }

    @Override
    public List<String> findRoleIdByhontUserId() {
        return hontUserRoleMapper.findhontUserIdByRolelevel();
    }
}
